package com.showcai.service;

import com.github.pagehelper.PageInfo;
import com.showcai.module.MessageBoard;
import com.showcai.myRunTime.MyRunTimeExcption;

import java.util.Map;

/**
 * Created by Baggio on 2018-9-5.
 */
public interface MessageBoardService {
    /**
     * 添加留言板
     *
     * @param messageBoard
     * @throws MyRunTimeExcption
     */
    void addMessageBoard(MessageBoard messageBoard) throws MyRunTimeExcption;

    /**
     * 获取所有留言
     *
     * @param map
     * @return
     * @throws MyRunTimeExcption
     */
    PageInfo getMessageBoardList(Map<String, String> map) throws MyRunTimeExcption;
}
